#ifndef _FILE_H_
#define _FILE_H_

#include <stdio.h>
#include "ifile.h"

class CFile : public IFile
{
public:
	virtual int Read(void* pBuffer, size_t uElementSize, size_t uCount);
	virtual int Write(void* pBuffer, size_t uElementSize, size_t uCount);

	virtual int Seek(long lOffset, int nOrigin);
	virtual size_t Size(void);

public:
	CFile();
	~CFile();

	bool Init(const char* pcszFileName, const char* pcszMode);
	bool UnInit(void);

private:
	FILE*	m_pFile;
	char	m_szFileName[MAX_FILE_NAME_LEN];
};

#endif	// _FILE_H_